FROM debian:stable

RUN apt-get update && apt-get install -y openssh-server curl
RUN touch /usr/lib/tmpfiles.d/sshd.conf && echo 'd /run/sshd 0755 root root' >> /usr/lib/tmpfiles.d/sshd.conf
RUN mkdir -p /run/sshd

EXPOSE 22 80

CMD ["/usr/sbin/sshd", "-oClientAliveInterval=10", "-oProtocol=2", "-D"]